// import '@/static/js/pc'
import Vue from 'vue'
import App from './App'
import store from './store/index.js'
import api from '@/common/api.js' // 导入api清单
import common from '@/common/common.js' // 公共方法
import bxUtil from '@/common/util.js' // 公共方法
import fly from '@/common/http.js' // fly 请求拦截
// import VConsole from 'vconsole'
// var vConsole = new VConsole();
import network from '@/pages/public/network/network.vue'
import dateUtils from '@/common/date_utils.js'
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom', cuCustom)
import uView from "uview-ui";
Vue.use(uView);
// 引入composition-api
// import VueCompositionAPI from '@vue/composition-api'
// Vue.use(VueCompositionAPI)

Vue.config.productionTip = false
Vue.component('network',network)
Vue.use(common) // 老版公共方法,最终要抛弃
Vue.use(bxUtil) // 新版公共方法
Vue.prototype.$http = fly
Vue.prototype.$api = api


const prePage = () => {
	// 分页
	let pages = getCurrentPages();
	let prePage = pages[pages.length - 2];
	// #ifdef H5
	return prePage;
	// #endif
	return prePage.$vm;
}
Vue.prototype.$tapi = {
	prePage
}; // 静态测试api

App.mpType = 'app'

const app = new Vue({
	store,
	...App
})

app.$mount()
